package com.mxm.mall.demo.entity;

import java.math.BigDecimal;

/**
 * 商品实体类
 *
 * @author mxm
 */
public class Product {

    public Product(Integer id, String productName, BigDecimal price, BigDecimal discount) {
        this.id = id;
        this.productName = productName;
        this.price = price;
        this.discount = discount;
    }

    /**
     * id
     */
    private Integer id;

    /**
     * 产品名称
     */
    private String productName;

    /**
     * 价格
     */
    private BigDecimal price;


    /**
     * 折扣
     */
    private BigDecimal discount;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getDiscount() {
        return discount;
    }

    public void setDiscount(BigDecimal discount) {
        this.discount = discount;
    }
}
